package com.jr9z.jrjz.service;

import com.jr9z.jrjz.entity.News;

import java.util.List;

/**
 * @Author:Mrzhang
 * @Description:新闻service
 * @Date:2019.03.25 21:44
 **/

public interface NewsService {
    int deleteByPrimaryKey(Integer newsId);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(Integer newsId);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKeyWithBLOBs(News record);

    int updateByPrimaryKey(News record);

    /**
     * @Description:获取企业动态
     * @date: 11:03 2019-4-2
     * @param:
     * @return: java.util.List<com.jr9z.jrjz.entity.News>
     */
    List<News> getNewsTypeOne();

    /**
     * @Description:获取行业动态
     * @date: 11:03 2019-4-2
     * @param:
     * @return: java.util.List<com.jr9z.jrjz.entity.News>
     */
    List<News> getNewsTypeTwo();

    /**
     * @Description:获取企业动态数量
     * @date: 11:07 2019-4-2
     * @param:
     * @return: java.lang.Long
     */
    Long getCountTypeOne();

    /**
     * @Description:获取行业动态数量
     * @date: 11:08 2019-4-2
     * @param:
     * @return: java.lang.Long
     */
    Long getCountTypeTwo();

    /**
     * @Description:获取全部新闻
     * @date: 17:09 2019-4-17
     * @param:
     * @return: java.util.List<com.jr9z.jrjz.entity.News>
     */
    List<News> getAllNews();

    /**
     * @Description:获取全部新闻数量
     * @date: 17:11 2019-4-17
     * @param:
     * @return: java.lang.Long
     */
    Long getCountAll();

    News getPrevNews(Integer newsId);


    News getNextNews(Integer newsId);

}
